package com.common.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.*;
import java.util.Date;

/**
 * 实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "Role ", description = "实体类")
public class Role  {


    @ApiModelProperty(hidden = true)
    private String id;


    @NotEmpty(message = "角色名称不能为空")
    @Size(min = 2,max = 8,message = "角色名称长度必须在 2～8 之间")
    @ApiModelProperty(name="roleName",value="角色名称",example="")
    private String roleName;


    @NotEmpty(message = "角色标志不能为空")
    @Size(min = 3,max = 15,message = "角色标志长度必须在 3～15 之间")
    @ApiModelProperty(name="roleSign",value="角色标志",example="")
    private String roleSign;


    @ApiModelProperty(name="createUserId",value="创建人ID",example="")
    private String createUserId;


    @ApiModelProperty(name="createTime",value="创建时间",example="")
    private Date createTime;


    @ApiModelProperty(name="updateUserId",value="更新人ID",example="")
    private String updateUserId;


    @ApiModelProperty(name="updateTime",value="更新时间",example="")
    private Date updateTime;


    @ApiModelProperty(name="isDeleted",value="",example="")
    private Integer isDeleted;


    @ApiModelProperty(name="checkStatus",value="审核状态 0代审核 1审核通过",example="")
    private Integer checkStatus;

}
